home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / emacs-complete / fsf / emacs / src / s / sco4.h < prev    next >
C/C++ Source or Header  |  1994-10-05  |  4KB  |  132 lines

  1. /* System description file for SCO 3.2v4.
  2.    Copyright (C) 1993, 1994 Free Software Foundation, Inc.
  3.  
  4. This file is part of GNU Emacs.
  5.  
  6. GNU Emacs is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. GNU Emacs is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU Emacs; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. /* Contributed by Ian Lance Taylor, ian@cygnus.com.  */
  21.  
  22. /* SCO is sort of like SVR3.  */
  23. #include "usg5-3.h"
  24.  
  25. #if 0 /* Turned off rather than make the Lisp code check for this. -- rms.
  26.      I am assuming that (at least most of) the tests for usg-unix-v
  27.      do the right thing for sco3.2v4 also.  Things that *might* be wrong
  28.      as a result of turning off these lines include the values of
  29.      ange-ftp-remote-shell-file-name (now remsh)
  30.      dired-chown-program (now just chown)
  31.      lpr-command (now lp)
  32.      nntp-buggy-select (now t)
  33.      rmail-spool-directory (now /usr/mail?)
  34.      and the actions of the function print-region-1.  */
  35.  
  36. /* SYSTEM_TYPE should indicate the kind of system you are using.  */
  37. #undef SYSTEM_TYPE
  38. #define SYSTEM_TYPE "SCO 3.2v4"
  39. #endif
  40.  
  41. /* SCO supports job control.  */
  42. #undef NOMULTIPLEJOBS
  43.  
  44. /* SCO has termios.  */
  45. #define HAVE_TERMIOS
  46.  
  47. /* SCO has timeval.  */
  48. #define HAVE_TIMEVAL
  49.  
  50. /* SCO has ptys with unusual names.  */
  51. #define HAVE_PTYS
  52.  
  53. #define PTY_ITERATION \
  54.    for (i = 0; ; i++)
  55. #define PTY_NAME_SPRINTF \
  56.   sprintf (pty_name, "/dev/ptyp%d", i);
  57. #define PTY_TTY_NAME_SPRINTF \
  58.   sprintf (pty_name, "/dev/ttyp%d", i);
  59.  
  60. /* Sockets are an option on SCO.  If you have X, you have them.
  61.    They also exist if you have TCP, but we don't know how to test
  62.    for that.  */
  63. #ifdef HAVE_X_WINDOWS
  64. #define HAVE_SOCKETS
  65. #endif
  66.  
  67. /* This is safe since we already assumed HAVE_SOCKET
  68.    if using X windows.  */
  69. #undef LIBX11_SYSTEM
  70. #define LIBX11_SYSTEM -lpt -lnls -lnsl_s -lc_s -lsocket
  71.  
  72. #ifdef HAVE_INET_SOCKETS /* This comes from autoconf.  */
  73. #define HAVE_SOCKETS
  74. #endif
  75.  
  76. #ifdef HAVE_SOCKETS
  77. #define LIBS_SYSTEM -lsocket -lPW
  78.  
  79. /* SCO has gettimeofday in socket library */
  80. /* Autoconf should determine this, but for now, 
  81.    play safe to avoid error rather than deleting this
  82.    and risking the wrong result.  */
  83. #ifndef HAVE_GETTIMEOFDAY
  84. #define HAVE_GETTIMEOFDAY
  85. #endif
  86. #endif
  87.  
  88. /* This enables configure to tell that we have alloca.  */
  89. #ifndef LIBS_SYSTEM
  90. #define LIBS_SYSTEM -lPW
  91. #endif
  92.  
  93. #ifdef HAVE_X11R5
  94. /* configure can't get this right linking fails unless -lsocket is used.  */
  95. #undef HAVE_XSCREENNUMBEROFSCREEN
  96. #define HAVE_XSCREENNUMBEROFSCREEN
  97. #endif
  98.  
  99. /* We don't have -loldX, and we don't need it.  */
  100. #define LIB_XMENU_LIB
  101.  
  102. /* SCO does have TIOCGWINSZ.  */
  103. #undef BROKEN_TIOCGWINSZ
  104. #define NEED_PTEM_H
  105.  
  106. /* We need to link with crt1.o and crtn.o.  */
  107. #define START_FILES pre-crt0.o /lib/crt1.o
  108. #define LIB_STANDARD -lc /lib/crtn.o
  109.  
  110. /* Send signals to subprocesses by "typing" signal chars at them.  */
  111. #define SIGNALS_VIA_CHARACTERS
  112.  
  113. /* Specify program for etc/fakemail to run.  Define SMAIL if you are
  114.    using smail, don't for MMDF.  */
  115.  
  116. #ifdef SMAIL
  117. #define MAIL_PROGRAM_NAME "/bin/smail -q0"
  118. #else
  119. #define MAIL_PROGRAM_NAME "/usr/lib/mail/execmail"
  120. #endif
  121.  
  122. /* miano@acosta.enet.dec.com says these are needed.  */
  123. #define bcopy(b1,b2,len) memmove (b2, b1, len)
  124. #define bzero(b,len) memset (b, 0, len)
  125. #define bcmp(b1,b2,len) memcmp (b1, b2, len)
  126.  
  127. /* Tell process_send_signal to use VSUSP instead of VSWTCH.  */
  128. #define PREFER_VSUSP
  129.  
  130. /* wjs@wang.com (William Smith) says this is needed on 3.2.4.2.  */
  131. #define POSIX_SIGNALS
  132.